package com.xinpu.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xinpu.entity.TDepartment;
import com.xinpu.mapper.DepartmentMapper;
import com.xinpu.service.DepartmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * DepartmentServiceImpl
 *
 * @author ayuan
 * @date 2021/5/18
 */
@Service
public class DepartmentServiceImpl implements DepartmentService {

    @Resource
    private DepartmentMapper departmentMapper;

    /**
     * 部门列表
     *
     * @param page
     * @param tenantId
     * @return
     */
    @Override
    public IPage<TDepartment> getList(Page<TDepartment> page, String tenantId) {
        return departmentMapper.getList(page, tenantId);
    }
}
